﻿using System.Collections.Generic;

namespace Gmantis.Uploader
{
    public class FilePackagerMultiFile : FilePackager
    {
        public override long GetMaxSizePerUpload()
        {
            return base.GetTotalSize();
        }

        public override IEnumerable<UploadFilePartPackage> GetPackages()
        {
            UploadFilePartPackage iteratorVariable0 = new UploadFilePartPackage
            {
                ServerWaitForOneFile = false
            };
            foreach (UploadFileInfo info in this.Files)
            {
                iteratorVariable0.Add(new UploadFilePartInfo(info));
            }
            yield return iteratorVariable0;
        }
    }
}
